import { createRouter, createWebHistory } from "vue-router";

import Login from "@/pages/Login.vue";
import Main from "@/pages/Main.vue";

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: "/",
            redirect: "/login",
        },
        {
            name: "login",
            path: "/login",
            component: Login,
        },
        {
            name: "home",
            path: "/home",
            component: Main,
        },
    ]
})

export default router